Page({
  data: {
    id: '',
    lineList: ['全部', '待出行', '待支付', '历史订单'],
    select: 0,
  },

  selectLine(e) {
    const index = e.currentTarget.dataset.index; 
    this.setData({
      select: index, 
    });
  },

  onLoad(options) {
    const id = options.id; 
    this.setData({
      id: id,
      select: id - 1,
    });
  },
});